package com.xjm.model;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author jaymin<br>
 * 静态工厂的方式创建Person对象<br>
 * 2020/11/28 0:16
 */
@Component
public class PersonStaticFactory {

	@Bean({"James","personB"})
	public static Person getPerson() {
		return new Person("I am James who created by PersonStaticFactory");
	}
}
